package com.swl.service.impl;

import com.swl.dao.AnswerDao;
import com.swl.pojo.Answer;
import com.swl.service.AnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class AnswerServiceImpl implements AnswerService {
    @Autowired
    private AnswerDao answerDao;

    @Override
    public int insertAnswer(String result,int tid) {
        return answerDao.insertAnswer(result,tid);
    }

    @Override
    public Answer selectAnswerByTid(int tid) {
        return answerDao.selectAnswerByTid(tid);
    }
}
